//
//  MessageModel.h
//  ExcellentHome
//
//  Created by 揭婧雯 on 16/8/1.
//  Copyright © 2016年 陈区. All rights reserved.
//

#import <Foundation/Foundation.h>

/// 新增、修改、删除 字段，数据库操作会无效！
@interface MessageModel : NSObject
@property (nonatomic, strong) NSString* messageId; //消息id
@property (nonatomic, strong) NSString* userid; //用户id
@property (nonatomic, strong) NSString* usertype; //暂定
@property (nonatomic, strong) NSString* title; //消息标题
@property (nonatomic, strong) NSString* message; //消息内容
@property (nonatomic, strong) NSString* objectid; //某块详情id
@property (nonatomic, strong) NSString* groupid; //组id
@property (nonatomic, strong) NSString* sender; //发送者
@property (nonatomic, strong) NSString* usericon; //头像
@property (nonatomic, strong) NSString* businesstype; //类型  1-邻居  2-私信  3-系统
@property (nonatomic, strong) NSString* type; //模块自定义id
@property (nonatomic, strong) NSString* createTime; //创建时间 格式 2016-07-07 20:11 yyyy-MM-dd HH:mm

@property (nonatomic, strong) NSString* uuid; //登陆用户id
@property (nonatomic, strong) NSString* isTop; //是否置顶
@property (nonatomic, strong) NSString* contenttype; //类容类型定义:1为文本，2为图片，3为语音，4为视频 5 借条
@property (nonatomic, strong) NSString* sendUserId;
@property (nonatomic, strong) NSString* sendUserType; //发送者类型 0:自己 1:他人 Wendy
@property (nonatomic, strong) NSString* turnTip; //到家服务中的状态
@property (nonatomic, strong) NSString* turnType; //跳转类型:0 默认 10支付 20 申请退款 30 评价 40 申请退款成功 50 退款成功 60 再次购买 70 评价满意 80 评价不满意

@property (nonatomic, strong) NSString* communityId; //小区id 4.3.7使用
@property (nonatomic, strong) NSString* submsg; //引用消息
@property (nonatomic, strong) NSString* lable; //评论来源
@property (nonatomic, strong) NSString* isRead; //是否已读 0未读 1已读

+ (instancetype)initWithDictionary:(NSDictionary*)dictionary;
/**
 *  获取模型对应的字典
 *
 *  @return 字典
 */
- (NSDictionary*)getDictionaryFromModel;

@end
